/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rocketship;

/**
 *
 * @author Mikael Köhlmyr | mikael@kohlmyr.com | http://www.kmyr.net
 */
public class Numeric {

        public static int get_random_buffered_integer(int max, int buffer) {
                return (int) ((Math.random() * (max - buffer)) + buffer);
        }

        public static double get_random_pivoted_double(int max) {
                return ((Math.random() * max) + ((-1) * (max / 2)));
        }
}
